﻿using AutoMapper;
using Hsp.WebNovels.Model.Dtos;
using Hsp.WebNovels.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hsp.WebNovels.Model.Datum
{
    /// <summary>
    /// 配置实体与传输对象关系映射
    /// </summary>
    public class AutomapperConfig: Profile
    {
        public AutomapperConfig()
        {
            CreateMap<Novel, NovelDto>(); // Novels
            CreateMap<Chapter, ChapterDto>(); // Chapters
            CreateMap<WebSite, WebSiteDto>(); // WebSites
        }
    }
}
